-- GENERATED SPELL FOR [Crazed Water Spirit] --


function spell0_16570(pUnit, Event) --@Water Wall,n/a--
pUnit:FullCastSpellOnTarget(54400,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16570', 556, 1)
end

function Sorts_16570(pUnit, Event)
local choix_sorts_16570 = math.random(0, 0)
if choix_sorts_16570 == 0 then
pUnit:RegisterEvent('spell0_16570', 1, 1)
end
end

function mob16570_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16570', math.random(1500, 3000), 1)
end

function mob16570_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16570_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16570_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16570, 1, 'mob16570_Action')
RegisterUnitEvent(16570, 2, 'mob16570_Leave')
RegisterUnitEvent(16570, 3, 'mob16570_Kill')
RegisterUnitEvent(16570, 4, 'mob16570_Die')
